package org.dromara.mall.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * 订单明细对象 ter_mall_orderitem
 *
 * @author xch
 * @date 2025-06-27
 */
@Data
@TableName("ter_mall_orderitem")
public class TerMallOrderitem {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 订单ID
     */
    private String orderId;

    /**
     * 商品ID
     */
    private Long productId;

    /**
     * 商品名称（快照）
     */
    private String productName;

    /**
     * 单价（快照）
     */
    private Integer price;

    /**
     * 数量
     */
    private Integer quantity;

    /**
     * 总价
     */
    private Integer totalPrice;

    private String thumbnail;
}
